<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js的编写位置</title>
    
    <style>
        a
        {
            text-decoration: none;
        }
    </style>

</head>
<body>

    
    <a href="#" onclick="alert('百度一下')">百度一下</a>
     <div class="box">哈哈哈</div>
    <script>
       var ele = document.querySelector('.box')
    </script>
    <noscript>该页面不支持JavaScript</noscript>
    <script>
            var result = prompt();
            console.log(result);
            var name="cq";
            var passwd = 12344556;
            console.log(name,passwd)
            console.log(typeof name)
    </script>
    
</body>
</html>